package com.weifangfirecontrolformal.weifangfirecontrolformal.web.service.business.rulesandregulations;

import cn.hutool.json.JSONObject;
import com.weifangfirecontrolformal.weifangfirecontrolformal.common.base.BaseService;
import com.weifangfirecontrolformal.weifangfirecontrolformal.support.model.RespEntity;
import com.weifangfirecontrolformal.weifangfirecontrolformal.support.utils.requestutil.HttpRequestUtil;
import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class RulesandregulationsService extends BaseService {

	private static final Logger logger = LoggerFactory.getLogger(RulesandregulationsService.class);



	/**
	 * 规章制度列表
	 * @param
	 * @return
	 */
	public RespEntity rulesandregulationsListPage(JSONObject jsonParam) {
		jsonParam = HttpRequestUtil.commonHttpRequestParamConvert(getRequest());
		return restJava(jsonParam,"businessJava","rulesandregulationsListPage","rulesandregulations");
	}

	/**
	 * 规章制度详情
	 * @param
	 * @return
	 */
	public RespEntity rulesandregulationsDetail(JSONObject jsonParam) {
		jsonParam = HttpRequestUtil.commonHttpRequestParamConvert(getRequest());
		return restJava(jsonParam,"businessJava","rulesandregulationsDetail","rulesandregulations");
	}

	/**
	 * 规章制度新增
	 * @param
	 * @return
	 */
	public RespEntity rulesandregulationsAdd(JSONObject jsonParam) {
		jsonParam = HttpRequestUtil.commonHttpRequestParamConvert(getRequest());
		return restJava(jsonParam,"businessJava","rulesandregulationsAdd","rulesandregulations");
	}

	/**
	 * 规章制度修改
	 * @param
	 * @return
	 */
	public RespEntity rulesandregulationsUpdate(JSONObject jsonParam) {
		jsonParam = HttpRequestUtil.commonHttpRequestParamConvert(getRequest());
		return restJava(jsonParam,"businessJava","rulesandregulationsUpdate","rulesandregulations");
	}

	/**
	 * 规章制度删除
	 * @param
	 * @return
	 */
	public RespEntity rulesandregulationsDelete(JSONObject jsonParam) {
		jsonParam = HttpRequestUtil.commonHttpRequestParamConvert(getRequest());
		return restJava(jsonParam,"businessJava","rulesandregulationsDelete","rulesandregulations");
	}

}
